package cn.lsj.order.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @className: RestTemplate
 * @description: TODO 类描述
 * @author: liangshijie
 * @date: 2023/4/24
 **/
@Configuration
public class RestTemplateConfig {

    /**
     * 注入RestTemplate模板对象，用来发送http请求
     */
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
